-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an exception for a missing administrator email address #5330
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new feature, so please rebase it onto the 5.x
branch and change the milestone accordingly.
I consider the fact that
a bug and this PR intends to fix that by telling you what is wrong. |
@leofeyer or do you only view the new |
Adding just the exception as a bug fix would be fine with me. |
…address" This reverts commit 0832e66.
Thank you @fritzmg. |
we should consider adding the back end hint in Contao 5.0/5.x since the Contao Manager will not ask for the admin email (contrary to the install tool). |
The install too also will not ask for the administrator email address. Other than that I wanted to create a PR for 5.x, yes. |
Just a quick Idea: can we fallback to |
On Hostingwerk for example |
We could fall back to the email address of the first non-disabled admin back end user (order by ID ascending) - but that might be too arbitrary. |
it adds the admin email from the first registered user, which is no longer the case with the Contao Manager. |
Huh, never noticed that before 😁. So then we could indeed implement this fallback in Contao 5 at least (may be even 4.9+). |
Having an administrator email address defined in the system settings is pretty important - otherwise you will not be able to send emails from forms or with the registration module for example:
However, during the installation process of Contao it is not actually required to enter an administrator email address - so this might be missed completely and the error will not really tell you that the problem is a missing administrator email address.
This PR adds an exception to the
Email
class in case the administrator email address is not defined - and agetSystemMessage
hook in order to show that the Contao installation is still in a misconfigured state.This PR also adds a small CSS change so that links in error messages are actually identifiable as such:
⬇️